﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;
using Volo.Abp;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace Vouchers
{
    [Comment("调拨单")]
    [Table("t_allotvoucher")]
    [Index(nameof(VoucherCode))]
    public class AllotVoucher : VoucherBase
    {
        public AllotVoucher(Guid keyId)

        {
            this.Id = keyId;
        }
        [MaxLength(36)]
        [Comment("调入科室Id")]
        public Guid InDeptId { get; set; }

        [MaxLength(200)]
        [Comment("调入科室名称")]
        public string InDeptName { get; set; }

        [MaxLength(36)]
        [Comment("调出科室Id")]
        public Guid OutDeptId { get; set; }

        [MaxLength(200)]
        [Comment("调出科室名称")]
        public string OutDeptName { get; set; }



     


        [Comment("产品管理方式 0数量管理，1定数管理")]
        public int ProductMethod { get; set; }


       
        public AllotVoucher()
        {

        }

       
    }
}
